package function;

import View.menu;
import com.mysql.cj.x.protobuf.MysqlxDatatypes;

import java.sql.*;
import java.util.InputMismatchException;
import java.util.Scanner;

public class choic {
    public static void choice(String choice) {
        loop:
        while (true) {
            switch (choice) {
                case "1": {
                    local.choiceLogin_ch(menu.Login_ch());
                    break loop;
                }
                case "2": {
                    menu.Login();
                    break loop;
                }
                default: {
                    System.out.println("请输入合法的值");
                }
            }
        }
    }

}
